<html>
<head>
<title>Index.ets</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
.s0 { color: #a9b7c6;}
.s1 { color: #db7e9b;}
.s2 { color: #faa23d;}
.s3 { color: #e2da90;}
.s4 { color: #aa7dfc;}
.s5 { color: #b3e54c;}
</style>
</head>
<body bgcolor="#2b2b2b">
<table CELLSPACING=0 CELLPADDING=5 COLS=1 WIDTH="100%" BGCOLOR="#606060" >
<tr><td><center>
<font face="Arial, Helvetica" color="#000000">
Index.ets</font>
</center></td></tr></table>
<pre><span class="s0">build</span><span class="s1">() </span><span class="s2">{</span>
    <span class="s0">RelativeContainer</span><span class="s1">() </span><span class="s2">{</span>
      <span class="s0">Text</span><span class="s1">(</span><span class="s0">this</span><span class="s3">.</span><span class="s0">message</span><span class="s1">)</span>
        <span class="s3">.</span><span class="s0">id</span><span class="s1">(</span><span class="s4">'HelloWorld'</span><span class="s1">)</span>
        <span class="s3">.</span><span class="s0">fontSize</span><span class="s1">(</span><span class="s5">50</span><span class="s1">)</span>
        <span class="s3">.</span><span class="s0">fontWeight</span><span class="s1">(</span><span class="s0">FontWeight</span><span class="s3">.</span><span class="s0">Bold</span><span class="s1">)</span>
        <span class="s0">Button</span><span class="s1">()</span><span class="s2">{</span>
         <span class="s0">Text</span><span class="s1">(</span><span class="s4">'跳转'</span><span class="s1">)</span>
          <span class="s3">.</span><span class="s0">fontSize</span><span class="s1">(</span><span class="s5">30</span><span class="s1">)</span>
          <span class="s3">.</span><span class="s0">fontWeight</span><span class="s1">(</span><span class="s0">FontWeight</span><span class="s3">.</span><span class="s0">Bold</span><span class="s1">)</span>
        <span class="s2">}</span>
        <span class="s3">.</span><span class="s0">type</span><span class="s1">(</span><span class="s0">ButtonType</span><span class="s3">.</span><span class="s0">Capsule</span><span class="s1">)</span>
        <span class="s3">.</span><span class="s0">margin</span><span class="s1">(</span><span class="s2">{ </span><span class="s0">top</span><span class="s3">:</span><span class="s5">100</span><span class="s2">}</span><span class="s1">)</span>
        <span class="s3">.</span><span class="s0">backgroundColor</span><span class="s1">(</span><span class="s4">'#CD9FFB'</span><span class="s1">)</span>
        <span class="s3">.</span><span class="s0">width</span><span class="s1">(</span><span class="s4">'40%'</span><span class="s1">)</span>
        <span class="s3">.</span><span class="s0">height</span><span class="s1">(</span><span class="s4">'5%'</span><span class="s1">)</span>
        <span class="s3">.</span><span class="s0">onClick</span><span class="s1">(() </span><span class="s3">=&gt; </span><span class="s2">{</span>
          <span class="s0">router</span><span class="s3">.</span><span class="s0">pushUrl</span><span class="s1">(</span><span class="s2">{</span><span class="s0">url</span><span class="s3">:</span><span class="s4">'pages/two'</span><span class="s2">}</span><span class="s1">)</span>
        <span class="s2">}</span><span class="s1">)</span>


    <span class="s2">}</span>
    <span class="s3">.</span><span class="s0">height</span><span class="s1">(</span><span class="s4">'100%'</span><span class="s1">)</span>
    <span class="s3">.</span><span class="s0">width</span><span class="s1">(</span><span class="s4">'100%'</span><span class="s1">)</span>
  <span class="s2">}</span>
<span class="s2">}</span></pre>
</body>
</html>